export const mixin = {
    methods:{
        showName(){
            alert(this.name)
        }
    },
    /*组件被挂载时，执行mounted(),有多少个组件引入mixin就执行多少次*/
    mounted() {
        console.log("你好啊！组件已挂载！")
    }
}